package com.spring.primary_demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class MyApplication {

	@Autowired
	private  IMyService iMyService;

	public void doSomeThing(){
		iMyService.sayhi();
	}
}
